package com.mtsmda.oracleOfficialTutorialJAVA7.chapter1;

public class SwitchEx {

	private static final String AUTUMN = "autumn";
	private static final String SUMMER = "summer";
	private static final String SPRING = "spring";
	private static final String WINTER = "winter";

	public static void main(String[] args) {
		int level = 3;
		switch (level) {
		case 1: {
			System.out.println("Level 1");
		}
			;
			break;
		default: {
			System.out.println("Level Not");
		}
			;
			break;
		case 2: {
			System.out.println("Level 2");
		}
			;
			break;
		case 3: {
			System.out.println("Level 3");
		}
			;
			break;
		}
		System.out.println("_____");
		getSeasonMonths(AUTUMN);
	}

	private static void getSeasonMonths(String season) {
		switch (season.toLowerCase()) {
		case WINTER: {
			System.out.println("decabri, yanvari, ferrali");
		}
			;
			break;
		case SPRING: {
			System.out.println("mart, apreli, mai");
		}
			;
			break;
		case SUMMER: {
			System.out.println("iuni, iuli, avgust");
		}
			;
			break;
		case AUTUMN: {
			System.out.println("sentyabri, oktyabri, noyabri");
		}
			;
			break;
		default: {
			System.out.println("This is not a season!");
		}
			;
			break;
		}
	}

}